var flyFun = {}

/**
 * 获取输入框内容长度
 * function name: lengths
 * param val
 */  
flyFun.lengths(val) {  
    var valL = 0;  
    for (var ii = 0; ii < val.length; ii++) {  
        var w = val.substring(ii+1, ii);  
        if (/[^\x00-\xff]/g.test(w)) {  
            valL += 2;  
        } else {  
            valL++;  
        }  
    }  
    var lastVal = Math.round(valL/2);  
    return lastVal;
}

/**
 *  
 */